<?php
//require_once('simpletest/unit_tester.php');
//require_once('simpletest/reporter.php');
//   
require_once ("config.php");
require_once SIMPLETEST_BASE_DIR.'/unit_tester.php';
$test = &new TestSuite('All tests');
//   $mask = realpath(dirname(__FILE__) .'/../modules')
//       .'/*/{tests,class.*.test}.php';

	$mask = realpath(dirname(__FILE__)).'/libraries/*/{*,.}/*.php';
    foreach (glob($mask, GLOB_BRACE) as $file) {
	$test->addTestFile(realpath($file));
   };

	$mask = FRAMEWORK_DIR.'/libraries/*/{*,.}/*.tphp';
    foreach (glob($mask, GLOB_BRACE) as $file) {
	$test->addTestFile(realpath($file));
   }

// $test->addTestFile('libraries/neocasta/factory.php');
// $test->addTestFile('libraries/neocasta/theme.php');
// $test->addTestFile('libraries/neocasta/application.php');
// $test->addTestFile('libraries/neocasta/request.php');
// $test->addTestFile('libraries/neocasta/response.php');
// $test->addTestFile('libraries/neocasta/registry.php');
// $test->addTestFile('libraries/neocasta/database/database.php');


$test->run(new HtmlReporter());

?>